#include<iostream>
using namespace std;
class Car;
class Boat
{
	private:
		double weight;
	public:
		Boat(double);
	double friend getTotalWeight(Boat,Car);
};
Boat::Boat(double a)
{
	this->weight=a;
}
class Car
{
	private:
		double weight;
	public:
		Car(double);
	double friend getTotalWeight(Boat,Car);
};
Car::Car(double a)
{
	this->weight=a;
}
double getTotalWeight(Boat a,Car b)
{
	return a.weight+b.weight;
}
int main(void)
{
	double a,b;
	cin>>a>>b;
	Boat ba(a);
	Car cb(b);
	cout<<"The total weight is:"<<getTotalWeight(ba,cb)<<endl;
	return 0;
}
